home *** CD-ROM | disk | FTP | other *** search
/ PD ROM 1 / PD ROM Volume I - Macintosh Software from BMUG (1988).iso / Sounds / SpeechLib 3.0 / LibInit.asm next >
Encoding:
Assembly Source File  |  1986-04-27  |  326 b   |  14 lines  |  [TEXT/ttxt]

  1. BasicVersion        EQU 0    ;i.e.  2 in version 2.00
  2. BasicResult        EQU 6    ;if library is compatible with BASIC's 
  3.                 ;version, it sets this field to 0.
  4.                 ;If it is incompatible, it sets it non-zero.
  5.     
  6. LibInit:
  7.     CLR.W    BasicResult(a0)
  8.     CMP.W    #2,BasicVersion(a0)
  9.     BGE    LibInitExit
  10.     MOVE.W    #-1,BasicResult(a0)
  11. LibInitExit:
  12.     CLR.L    d0
  13.     RTS
  14.